pp108 : Creating a Sample Key Store

Creating a Sample Key Store

This topic describes the procedure to create a key store using JDK's keytool.

Create a new key store and self-signed certificate with corresponding public or private key.
keytool -genkey -alias Smith -keyalg RSA -validity 365 -keystore MykeystoreWhere Smith is the name of the key and Mykeystore represents the keystore filename.

Sample Key store

Enter key store password: password What is your first and last name? [Unknown]: Smith 
What is the name of your organizational unit? [Unknown]: Process Platform Software 
What is the name of your organization? [Unknown]: Process Platform
What is the name of your City or Locality? [Unknown]: Hyderabad 
What is the name of your State or Province? [Unknown]: AP 
What is the two-letter country code for this unit? [Unknown]: IN 
Is CN=Smith, OU=Process Platform Software, O=Process Platform, L=Hyderabad, ST=AP, C=IN correct? [no]: yes 
Enter key password for <Smith> (RETURN if same as key store password): <CR> 


This is the key store that the server will use.

Note: For more information on keytool, refer to http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html .